package cn.waqwb.my.shop.service.impl;

import cn.waqwb.my.shop.commons.context.SpringContext;
import cn.waqwb.my.shop.dao.UserDao;
import cn.waqwb.my.shop.entity.User;
import cn.waqwb.my.shop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao = (UserDao) SpringContext.context.getBean("userDao");
    @Override
    public User login(String email, String password) {
        return userDao.getUser(email,password);
    }
}
